/*
 * @Author: HZK
 * @Date: 2020-09-25 13:07:53
 * @LastEditTime: 2020-12-29 11:19:37
 * @LastEditors: hanfengmi
 * @Description: 登陆信息验证
 * * info 用户信息
 */
import React, { PureComponent } from 'react'
// import router from 'umi/router'
// import styles from './index.less'
class Index extends PureComponent {
  render() {
    const { info } = this.props
    if(info) {
      return <div>欢迎登录~ {info.nickName}</div>
    }else {
      return <div>登录 | 注册</div>
    }
  }
}

export default Index